LIBDIR := $(TOPDIR)/lib

#common *.c in src
LIB_COMMON_A := libCOMMON.a

LIB_SQLITE3_A = libsqlite3.a
LIB_SQLITE3_SO = libsqlite3.so


LIB_MOSQUITTO_A = libmosquitto.a
LIB_MOSQUITTO_SO = libmosquitto.so

LIB_MPI_A = libmpi.a
LIB_IVE_A = libive.a
LIB_MD_A = libmd.a


LIB_MPI_SO = libmpi.so

LIB_DNVQE_SO = libdnvqe.so
LIB_UPVQE_SO = libupvqe.so
LIBJPEG_SO = libjpeg.so
LIB_VOICEENGINE_SO = libVoiceEngine.so

LIB_ONVIF_SO  = libonvif.so

LIB_SSL_SO = libssl.so
LIB_CRYPTO_SO = libcrypto.so

LIB_XELOG_SO =libxeLOG_REMOTE.so
LIB_XELOG_A =libxeLOG.a



export LIB_COMMON_A LIBDIR LIB_SQLITE3_A LIB_SQLITE3_SO	\
		LIB_MOSQUITTO_A LIB_MOSQUITTO_SO  LIB_MPI_SO \
		LIB_DNVQE_SO LIB_UPVQE_SO LIBJPEG_SO LIB_VOICEENGINE_SO \
		LIB_SSL_SO LIB_CRYPTO_SO LIB_XELOG_SO LIB_XELOG_A LIB_ONVIF_SO
###############################################################################


###############################################################################
#ifeq ($(TARGET_PRODUCT_MODEL),HISOME-M3500)
CFLAGS += -I$(TOPDIR)/include

BASE_DIR_y += $(TOPDIR)/ext/sqlite3
#BASE_DIR_y += $(TOPDIR)/ext/mosquitto
BASE_DIR_y += $(TOPDIR)/ext/xelog
#BASE_DIR_y += $(TOPDIR)/ext/hissdk
#BASE_DIR_y += $(TOPDIR)/ext/onvif

LDFLAGS += -L$(LIBDIR)

LDFLAGS += -Wl,--start-group
LDFLAGS += $(LIBDIR)/$(LIB_COMMON_A)
LDFLAGS += $(LIBDIR)/$(LIB_SQLITE3_SO)
#LDFLAGS += $(LIBDIR)/$(LIB_MOSQUITTO_SO)

#LDFLAGS += $(LIBDIR)/$(LIB_SSL_SO)
#LDFLAGS += $(LIBDIR)/$(LIB_CRYPTO_SO)
#LDFLAGS += $(LIBDIR)/$(LIB_MPI_A)

#LDFLAGS += $(LIBDIR)/$(LIB_IVE_A)
#LDFLAGS += $(LIBDIR)/$(LIB_MD_A)

LDFLAGS += $(LIBDIR)/$(LIB_XELOG_A)

LDFLAGS += -Wl,--end-group

#LDFLAGS += -lmpi -ldnvqe -lupvqe  -lVoiceEngine 
#-lonvif -ljpeg
LDFLAGS += -ldl -lm -lc -lrt



#endif#TARGET_PRODUCT_MODEL==HISOME-M3500
###############################################################################
CFLAGS += $(addsuffix /include,$(addprefix -I,$(BASE_DIR_y)))
###############################################################################
export BASE_DIR_y CFLAGS



